package com.ciaj.module.sys.entity.po;

import com.ciaj.base.bean.SupperEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 权限信息表 Gen Entity
* </p>
*
* @author ciaj.
* @since 2020-08-14
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysPermission对象", description="权限信息表")
public class SysPermission extends SupperEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "权限描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "权限类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "权限码")
    @TableField("permission_code")
    private String permissionCode;

    @ApiModelProperty(value = "资源路径")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "父级ids")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "是否可用（Y/N）")
    @TableField("available")
    private String available;


}
